@mixin foo() {
  $size: 80%;
  div {
    color: red;
    @content;
    background: blue;
    width: $size;
    @include bar() {
      color: orange;
      @content;
    }
  }
}

@mixin bar() {
  form {
    @content;
  }
}

span {
  $size: 1.2em;
  color: green;
  @include foo() {
    @media fudge {
      p {
        font-weight: bold;
        font-size: $size;
        a {
          text-decoration: underline;
        }
      }
    }
  }
}

@mixin apply-to-ie6-only {
  * html {
    @content;
  }
}
@include apply-to-ie6-only {
  #logo {
    background-image: url(/logo.gif);
  }
}